package com.xzzz.irda.guardcat.core.metric.tomcat;

/**
 * Tomcat 全局请求处理器信息
 *
 * @author xzzz
 * @since 1.0.0
 */
public class TomcatGlobalRequestProcessorInfo {

    /**
     * 请求数
     */
    private Integer requestCount;

    /**
     * 处理请求的总时间
     */
    private Long processingTime;

    /**
     * 处理请求的最长时间
     */
    private Long maxTime;

    /**
     * 错误数
     */
    private Integer errorCount;

    /**
     * 发送的数据量，以字节为单位
     */
    private Long bytesSent;

    /**
     * 接收的数据量，以字节为单位
     */
    private Long bytesReceived;

    public Integer getRequestCount() {
        return requestCount;
    }

    public void setRequestCount(Integer requestCount) {
        this.requestCount = requestCount;
    }

    public Long getProcessingTime() {
        return processingTime;
    }

    public void setProcessingTime(Long processingTime) {
        this.processingTime = processingTime;
    }

    public Long getMaxTime() {
        return maxTime;
    }

    public void setMaxTime(Long maxTime) {
        this.maxTime = maxTime;
    }

    public Integer getErrorCount() {
        return errorCount;
    }

    public void setErrorCount(Integer errorCount) {
        this.errorCount = errorCount;
    }

    public Long getBytesSent() {
        return bytesSent;
    }

    public void setBytesSent(Long bytesSent) {
        this.bytesSent = bytesSent;
    }

    public Long getBytesReceived() {
        return bytesReceived;
    }

    public void setBytesReceived(Long bytesReceived) {
        this.bytesReceived = bytesReceived;
    }

    @Override
    public String toString() {
        return "TomcatGlobalRequestProcessorInfo{" +
                "requestCount=" + requestCount +
                ", processingTime=" + processingTime +
                ", maxTime=" + maxTime +
                ", errorCount=" + errorCount +
                ", bytesSent=" + bytesSent +
                ", bytesReceived=" + bytesReceived +
                '}';
    }
}
